package com.course.gateway.filter;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author: Durian
 * @date: 2021/6/5 22:08
 */
@Slf4j
@Component
public class UserLoginGatewayFilterFactory extends AbstractGatewayFilterFactory<Object> {

    @Resource
    UserLoginGatewayFilter userLoginGatewayFilter;

    @Override
    public GatewayFilter apply(Object config) {
        return userLoginGatewayFilter;
    }
}
